

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="adminmain" />
        <title>Donation Report</title>
    </head>
    
    <body>

        
        <div class="body">
        
            <h1>Donation Report</h1>
            
            <g:if test="${flash.message}">
            	<div class="message">${flash.message}</div>
            </g:if>
            
            <div class="list">
                <table>
                    <thead>
                        <tr>
				<td>Id</td>

				<td>First Name</td>
				
				<td>Last Name</td>
				
				<td>Email</td>

				<td>Amount Gross</td>

				<td>Date</td>
                       
                        </tr>
                    </thead>
                    
                    <tbody>
                    <g:each in="${donationReportList}" status="i" var="donation">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td><g:link action="donationShow" id="${donation.id}">${donation.id?.encodeAsHTML()}</g:link></td>
                            
                            <td>${donation.donorFirstName?.encodeAsHTML()}</td>
							                        
                            <td>${donation.donorLastName?.encodeAsHTML()}</td>
                            
                            <td>${donation.donorEmail?.encodeAsHTML()}</td>
                        
                            <td>${donation.amountGross?.encodeAsHTML()}</td>
                        
                            <td>${donation.dateCreated?.encodeAsHTML()}</td>
                        
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>


        </div>
    </body>
</html>
